package cn.shyouchi.wuguanjia.android.ui.statistic;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

import cn.shyouchi.wuguanjia.android.R;

/**
 * Created by Eenie on 2017/1/16 at 10:10
 * Email: 472279981@qq.com
 * Des:
 */

public class NewlyStaffAdapter extends BaseQuickAdapter<NewlyInfo,BaseViewHolder> {
    public NewlyStaffAdapter( List<NewlyInfo> data) {
        super(R.layout.item_statistic_newly_layout, data);
    }

    @Override
    protected void convert(BaseViewHolder holder, NewlyInfo entity) {
        holder.setText(R.id.tv_newly_name, entity.getName());
        holder.setText(R.id.tv_newly_time, entity.getUpdated_at().substring(0,10));
        holder.setText(R.id.tv_newly_post, entity.getPermissions());
        holder.setText(R.id.tv_newly_from, entity.getChannel());
    }
}
